body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    padding: 30px;
    border: 1px solid rgba(94, 234, 212, 0.1);
}
h1 {
    text-align: center;
    color: #5eead4;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.3);
    letter-spacing: 1px;
}
.section {
    margin-bottom: 40px;
    border-radius: 12px;
    padding: 25px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(94, 234, 212, 0.15);
    box-shadow: 0 4px 20px rgba(2, 8, 20, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(2, 132, 199, 0.4);
}
h2 {
    color: #38bdf8;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 12px;
    margin-top: 0;
    font-size: 1.8rem;
}
.keyboard-layout {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 6px;
    margin: 25px 0;
    font-size: 12px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.key {
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 10px 4px;
    text-align: center;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.7);
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}
.key:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.2);
}
.key-active {
    background: rgba(56, 189, 248, 0.3);
    border: 1px solid #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}
.key-highlight {
    background: rgba(56, 189, 248, 0.25);
    border: 1px solid #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}
.key-legend {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
}

/* 功能提示框 */
.tooltip {
    position: fixed;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(2, 8, 20, 0.6);
    backdrop-filter: blur(5px);
    max-width: 300px;
    line-height: 1.5;
}

/* 操作详情面板 */
.detail-panel {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 350px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.6);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 100;
    max-height: 80vh;
    overflow-y: auto;
}

.detail-panel h3 {
    margin-top: 0;
    color: #38bdf8;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 10px;
    font-size: 1.4rem;
}

.detail-panel .key-display {
    font-size: 24px;
    font-weight: bold;
    color: #5eead4;
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(94, 234, 212, 0.2);
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.detail-panel .description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.detail-panel .examples {
    background: rgba(30, 41, 59, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.detail-panel .examples h4 {
    margin-top: 0;
    color: #5eead4;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.detail-panel .examples ul {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
}

.detail-panel .examples li {
    margin: 8px 0;
    font-size: 14px;
}

/* 操作历史 */
.history-panel {
    position: fixed;
    left: 20px;
    top: 20px;
    width: 280px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.6);
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
}

.history-panel h3 {
    margin-top: 0;
    color: #5eead4;
    border-bottom: 1px solid rgba(94, 234, 212, 0.3);
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.history-item {
    padding: 10px;
    margin: 8px 0;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.history-item:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: translateX(5px);
}

.history-key {
    font-weight: bold;
    color: #38bdf8;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.history-desc {
    color: #94a3b8;
    margin-top: 4px;
}

/* 控制面板 */
.control-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 25px;
    padding: 15px 25px;
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.control-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.control-btn.active {
    background: rgba(56, 189, 248, 0.4);
    color: #e2e8f0;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.command-category {
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    transition: all 0.3s ease;
}
.command-category:hover {
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.2);
}
.command-category h3 {
    margin-top: 0;
    color: #5eead4;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(94, 234, 212, 0.3);
    padding-bottom: 10px;
}
.command-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.command-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.command-list li:last-child {
    border-bottom: none;
}
.command-key {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    background: rgba(56, 189, 248, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #38bdf8;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.command-desc {
    color: #cbd5e1;
    font-size: 14px;
    flex: 1;
    margin-left: 15px;
}
